//
//  TTVPcmPlayer.h
//  TouchTV
//
//  Created by 周启睿 on 2021/6/24.
//  Copyright © 2021 TouchTV. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


@interface TTVPcmPlayer : NSObject

@property (nonatomic,assign) BOOL isPlaying;

- (id)initWithData:(NSData *)data sampleRate:(long)sample;

- (void)addBufferData:(NSData *)data;

- (BOOL)play;

- (void)stop;

- (double)getCurrentTime;

@end

NS_ASSUME_NONNULL_END
